<?php
require('includes/top.php');
$add_vendor_cat = $_POST["add_vendor_cat"];		

$sql="INSERT INTO vendor_cat(`vendor_cat`) VALUES ('$add_vendor_cat')";
$result=mysql_query($sql);
 if($result)
 {
header("location:add_vendor_cat.php");
}
 else
 {
	 echo mysql_error();
 }
ob_flush();
?>
 